
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <%@include file="../WEB-INF/jspf/html_inicio.jspf" %>
    <%@include file="../WEB-INF/jspf/cabecera.jspf" %>
    <%@include file="../WEB-INF/jspf/navbar.jspf" %>
    <%@include file="../WEB-INF/jspf/cuadro_inicio.jspf" %>
    <%@include file="../WEB-INF/jspf/menu_principal.jspf" %>
    <%@include file="../WEB-INF/jspf/cuadro_medio.jspf" %>
    <%@include file="../WEB-INF/jspf/bloque_inicio.jspf" %>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <title>Cuentas por Cobrar</title>
             <link rel=stylesheet type="text/css" href="/edu.upn.sigeadmi.cxc-war/style.css">
         </head>
        <body>

         
            <table>
                <tr>
                    <td width="225">

                    </td>
                    <td>
                        <br>
                    <h2><h:outputText value="REGISTRAR PAGO"/></h2>
             <h:form id="frmNuevo">

                    <h:outputLabel value="Cliente: " />
                    <h:inputText id="Cliente" maxlength="115" disabled="true" style=" background: silver"  ></h:inputText>
                    <h:outputLabel value="RUC: " />
                    <h:inputText id="NoRuc" disabled="true" style=" background: silver" ></h:inputText>

                    <h:panelGrid columns="5" >

                    </h:panelGrid>

                    <h:panelGrid columns="4">
                    <h:outputLabel value="Tipo Moneda: " for="TipoMoneda" />
                    <h:selectOneMenu id="TipoMoneda">
                        <f:selectItem itemValue="1" itemLabel="Soles"/>
                        <f:selectItem itemValue="2" itemLabel="Dolares"/>
                        <f:selectItem itemValue="3" itemLabel="Euros"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="Tipo Cambio : " />
                    <h:inputText id="tCambio" size="15" disabled="false"></h:inputText>

                    </h:panelGrid>

                    <h:panelGrid columns="4">
                    <h:outputLabel value="Forma de Pago: " for="FormadePago" />
                    <h:selectOneMenu id="Forma">
                        <f:selectItem itemValue="1" itemLabel="Efectivo"/>
                        <f:selectItem itemValue="2" itemLabel="Cheque"/>
                        <f:selectItem itemValue="3" itemLabel="Tarjeta"/>
                    </h:selectOneMenu>
                    </h:panelGrid>
                    <br>
                    <fieldset>
                        <legend>Documento</legend>
                        <h:panelGrid columns="5" >
                            <h:outputLabel value="Tipo Documento: " />
                            <h:inputText id="documento" disabled="true" style=" background: silver" ></h:inputText>
                            <h:outputLabel value="Nro Documento: " />
                            <h:inputText id="NroDocume" disabled="true" style=" background: silver" ></h:inputText>

                            <h:commandButton id="btnBuscar2" value="Buscar"/>

                            <h:outputLabel value="Importe a Pagar :" for="ImporteRestante" />
                            <h:inputText id="ImporteRestante" size="20"/>
                            <h:outputLabel value="Saldo Actual: " />
                            <h:inputText id="ImportePagar" disabled="true" style=" background: silver"/>
                            <h:commandButton id="btnAgrega" value="Agregar"/>
                            </h:panelGrid>
                    </fieldset>
                    </br>
                    <h:dataTable id="tblDocumentos" var="documento" value="" border="1"
                                 cellpadding="0" cellspacing="0"
                                headerClass="headerAlignment"
columnClasses="Columnauno"
                                 >
                    <h:column>
                        <f:facet name="header"><h:outputText value="Tipo Documento"/></f:facet>
                        <h:outputText value=""/>
                    </h:column>
                    <h:column>
                        <f:facet name="header"><h:outputText value="No Documento"/></f:facet>
                        <h:outputText value=""/>
                    </h:column>
                    <h:column>
                        <f:facet name="header"><h:outputText value=" Importe " /></f:facet>
                        <h:outputText value="" />
                    </h:column>

                    <h:column>
                        <f:facet name="header"><h:outputText value="" /></f:facet>
                        <h:commandButton id="btnEditar" style=" higth:85" image="/RegPago/IMGS/Editar.png"/>
                    </h:column>
                  <h:column>
                        <f:facet name="header"><h:outputText value="" /></f:facet>
                        <h:commandButton id="btnEliminar" style=" with:90" image="/RegPago/IMGS/Borra.png"/>
                  </h:column>
                </h:dataTable>
                    <h:commandButton  id="btnGuardar"   alt="Grabar" value="Grabar" />
                    <h:commandButton id="btnVolver" action="#{CuentaPendientePagoController.volver}"
                                     value="Volver">
                    </h:commandButton>
            </h:form>

                    </td>
                    <td>

                    </td>

                </tr>
            </table>
                     <div class="centrar">
            <a href="#"><img src="/edu.upn.sigeadmi.cxc-war/img/logo_ta_resize.png" border="0"/></a>
        </div>
<%@include file="../WEB-INF/jspf/bloque_fin.jspf" %>
    <%@include file="../WEB-INF/jspf/cuadro_fin.jspf" %>
    <%@include file="../WEB-INF/jspf/pie.jspf" %>
    <%@include file="../WEB-INF/jspf/html_fin.jspf" %>
        </body>
    </html>
</f:view>
